Preparing Automatic Repair Loop